import 'package:taonile/generated/json/base/json_convert_content.dart';
import 'package:taonile/entity/user_info_entity.dart';

UserInfoEntity $UserInfoEntityFromJson(Map<String, dynamic> json) {
	final UserInfoEntity userInfoEntity = UserInfoEntity();
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		userInfoEntity.code = code;
	}
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		userInfoEntity.msg = msg;
	}
	final UserInfoData? data = jsonConvert.convert<UserInfoData>(json['data']);
	if (data != null) {
		userInfoEntity.data = data;
	}
	return userInfoEntity;
}

Map<String, dynamic> $UserInfoEntityToJson(UserInfoEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['code'] = entity.code;
	data['msg'] = entity.msg;
	data['data'] = entity.data.toJson();
	return data;
}

UserInfoData $UserInfoDataFromJson(Map<String, dynamic> json) {
	final UserInfoData userInfoData = UserInfoData();
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		userInfoData.id = id;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		userInfoData.name = name;
	}
	final String? mobile = jsonConvert.convert<String>(json['mobile']);
	if (mobile != null) {
		userInfoData.mobile = mobile;
	}
	final String? nickname = jsonConvert.convert<String>(json['nickname']);
	if (nickname != null) {
		userInfoData.nickname = nickname;
	}
	final String? totalAssets = jsonConvert.convert<String>(json['total_assets']);
	if (totalAssets != null) {
		userInfoData.totalAssets = totalAssets;
	}
	final String? assetVouchers = jsonConvert.convert<String>(json['asset_vouchers']);
	if (assetVouchers != null) {
		userInfoData.assetVouchers = assetVouchers;
	}
	final String? shoppingWallet = jsonConvert.convert<String>(json['shopping_wallet']);
	if (shoppingWallet != null) {
		userInfoData.shoppingWallet = shoppingWallet;
	}
	final String? fundWallet = jsonConvert.convert<String>(json['fund_wallet']);
	if (fundWallet != null) {
		userInfoData.fundWallet = fundWallet;
	}
	final String? usdt = jsonConvert.convert<String>(json['usdt']);
	if (usdt != null) {
		userInfoData.usdt = usdt;
	}
	final String? qdys = jsonConvert.convert<String>(json['qdys']);
	if (qdys != null) {
		userInfoData.qdys = qdys;
	}
	final String? isReporting = jsonConvert.convert<String>(json['is_reporting']);
	if (isReporting != null) {
		userInfoData.isReporting = isReporting;
	}
	final String? pid = jsonConvert.convert<String>(json['pid']);
	if (pid != null) {
		userInfoData.pid = pid;
	}
	final String? node = jsonConvert.convert<String>(json['node']);
	if (node != null) {
		userInfoData.node = node;
	}
	final String? levelId = jsonConvert.convert<String>(json['level_id']);
	if (levelId != null) {
		userInfoData.levelId = levelId;
	}
	final String? copartnerId = jsonConvert.convert<String>(json['copartner_id']);
	if (copartnerId != null) {
		userInfoData.copartnerId = copartnerId;
	}
	final String? referrer = jsonConvert.convert<String>(json['referrer']);
	if (referrer != null) {
		userInfoData.referrer = referrer;
	}
	final String? nodeList = jsonConvert.convert<String>(json['node_list']);
	if (nodeList != null) {
		userInfoData.nodeList = nodeList;
	}
	final String? gender = jsonConvert.convert<String>(json['gender']);
	if (gender != null) {
		userInfoData.gender = gender;
	}
	final String? avatar = jsonConvert.convert<String>(json['avatar']);
	if (avatar != null) {
		userInfoData.avatar = avatar;
	}
	final String? levelName = jsonConvert.convert<String>(json['level_name']);
	if (levelName != null) {
		userInfoData.levelName = levelName;
	}
	final String? copartnerName = jsonConvert.convert<String>(json['copartner_name']);
	if (copartnerName != null) {
		userInfoData.copartnerName = copartnerName;
	}
	final String? stockNum = jsonConvert.convert<String>(json['stock_num']);
	if (stockNum != null) {
		userInfoData.stockNum = stockNum;
	}
	final String? floatingStock = jsonConvert.convert<String>(json['floating_stock']);
	if (floatingStock != null) {
		userInfoData.floatingStock = floatingStock;
	}
	final String? stockCertificates = jsonConvert.convert<String>(json['stock_certificates']);
	if (stockCertificates != null) {
		userInfoData.stockCertificates = stockCertificates;
	}
	return userInfoData;
}

Map<String, dynamic> $UserInfoDataToJson(UserInfoData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['name'] = entity.name;
	data['mobile'] = entity.mobile;
	data['nickname'] = entity.nickname;
	data['total_assets'] = entity.totalAssets;
	data['asset_vouchers'] = entity.assetVouchers;
	data['shopping_wallet'] = entity.shoppingWallet;
	data['fund_wallet'] = entity.fundWallet;
	data['usdt'] = entity.usdt;
	data['qdys'] = entity.qdys;
	data['is_reporting'] = entity.isReporting;
	data['pid'] = entity.pid;
	data['node'] = entity.node;
	data['level_id'] = entity.levelId;
	data['copartner_id'] = entity.copartnerId;
	data['referrer'] = entity.referrer;
	data['node_list'] = entity.nodeList;
	data['gender'] = entity.gender;
	data['avatar'] = entity.avatar;
	data['level_name'] = entity.levelName;
	data['copartner_name'] = entity.copartnerName;
	data['stock_num'] = entity.stockNum;
	data['floating_stock'] = entity.floatingStock;
	data['stock_certificates'] = entity.stockCertificates;
	return data;
}